{extend name="public:layout" /}

{block name="title"}
	<title>{:site('siteName')}-登录</title>
{/block}

{block name="css"}
	<link rel="stylesheet" type="text/css" href="__STATIC__/{$theme}/css/login.css">
{/block}

{block name="content"}
	<div class="layui-main">
		<div class="login">
			<p>欢迎登录17创客</p>
	    	<div class="login-form">
	    		<form class="layui-form" action="{:url('index/user/login')}" method="post">
				  	<div class="layui-form-item">
				    	<label class="layui-form-label">用户名</label>
				    	<div class="layui-input-inline">
				      		<input type="text" name="username" lay-verify="required|username" placeholder="用户名或手机号" class="layui-input">
				    	</div>
				  	</div>
				  	<div class="layui-form-item">
				    	<label class="layui-form-label">密码</label>
				    	<div class="layui-input-inline">
				      		<input type="password" name="password" lay-verify="required|password" placeholder="" class="layui-input">
				    	</div>
				  	</div>
				  	<div class="layui-form-item">
				    	<label class="layui-form-label">验证码</label>
				    	<div class="layui-input-inline">
				      		<input type="text" name="code" lay-verify="required" placeholder="" class="layui-input">
				    	</div>
				  	</div>
				  	<div class="layui-form-item">
				    	<label class="layui-form-label"></label>
				    	<div class="layui-input-inline">
				      		<img src="{:captcha_src()}" alt="captcha" onclick="this.src='{:captcha_src()}'"/>
				    	</div>
				  	</div>
				  	<div class="layui-form-item">
				    	<div class="layui-input-block">
				    		<input type="hidden" name="__token__" value="{$Request.token}" />
				      		<button class="layui-btn layui-btn-danger login-btn" lay-submit>登 录</button>
				    	</div>
				  	</div>
				</form>
	    	</div>
		</div>
	</div>
{/block}

{block name="script"}

{/block}